/**
 * Created by yuming619 on 2016/11/24.
 */
var app = angular.module('mealplanadmin', [
    'ngCookies',
    'ui.router',
    'angularUtils.directives.dirPagination',
    'ng.comfirm',
    'ngFileUpload',

    'app.service.auth',
    'mealplan.template',
    'mealplan.service.order',
    'mealplan.service.service',
    'mealplan.service.serviceitem',
    'mealplan.service.user',
    'mealplan.service.orderdetail',
    'mealplan.service.fileupload',

    'app.auth',
    'mealplan.filter',
    'mealplan.order',
    'mealplan.cmtservice'

]);
app.run(
    ['$rootScope', '$state', '$stateParams',
        function ($rootScope, $state, $stateParams) {
            $rootScope.$state = $state;
            $rootScope.$stateParams = $stateParams;
        }
    ]
)
app.config(
    ['$stateProvider', '$urlRouterProvider', '$locationProvider',
        function ($stateProvider, $urlRouterProvider, $locationProvider) {
            $urlRouterProvider.otherwise('/login');
        }
    ]
)
;